package com.neusoft.yuejian_01.service;

import com.neusoft.yuejian_01.javabean.AttentionBean;
import com.neusoft.yuejian_01.javabean.IsAttentionBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/12.
 */

public interface AttentionService {
    //http://localhost/neu14_yuejian/API/Attention/getIsCollected/u_id/1/select_id/1/flag/4
    @GET("Attention/getIsCollected")
    Call<IsAttentionBean> isCollected(@Query("u_id") String u_id,
                                      @Query("select_id") String select_id,
                                      @Query("flag") String flag);
    //http://localhost/neu14_yuejian/API/Attention/userCollectClub/u_id/1/c_id/1
    @GET("Attention/userCollectClub")
    Call<AttentionBean> userCollectClub(@Query("u_id") String u_id,
                                        @Query("c_id") String c_id);
    //http://localhost/neu14_yuejian/API/Attention/userCollectTrain/u_id/1/t_id/1
    @GET("Attention/userCollectTrain")
    Call<AttentionBean> userCollectTrain(@Query("u_id") String u_id,
                                         @Query("t_id") String t_id);
    //http://localhost/neu14_yuejian/API/Attention/userCollectActivity/u_id/1/a_id/1
    @GET("Attention/userCollectActivity")
    Call<AttentionBean> userCollectActivity(@Query("u_id") String u_id,
                                            @Query("a_id") String a_id);
    //http://localhost/neu14_yuejian/API/Attention/userCollectMatch/u_id/1/m_id/1
    @GET("Attention/userCollectMatch")
    Call<AttentionBean> userCollectMatch(@Query("u_id") String u_id,
                                         @Query("m_id") String m_id);
    //http://localhost/neu14_yuejian/API/Attention/userCollectProfessor/u_id/1/pm_id/1
    @GET("Attention/userCollectProfessor")
    Call<AttentionBean> userCollectProfessor(@Query("u_id") String u_id,
                                             @Query("pm_id") String pm_id);
    //http://localhost/neu14_yuejian/API/Attention/userCollectPost/u_id/1/p_id/1
    @GET("Attention/userCollectPost")
    Call<AttentionBean> userCollectPost(@Query("u_id") String u_id,
                                        @Query("p_id") String p_id);

}
